updating oE smaller_of

smaller_of

include math.e 
namespace math 
public function smaller_of(object objA, object objB) 

returns the smaller of two objects.

Parameters:
  1. objA : an object.
  2. objB : an object.
Returns:

Whichever of objA and objB is the smaller one.

Comments:

Introduced in v4.0.3

Example 1:
? smaller_of(10, 15.4) -- returns 10 
? smaller_of("cat", "dog") -- returns "cat" 
? smaller_of("apple", "apes") -- returns "apes" 
? smaller_of(10, 10) -- returns 10 
See Also:

min, compare, larger_of

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu